<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue-2.5.21.js"></script>
    <style>
        .shuangpin {
            height: 70px;
            padding: 10px;
        }
        
        .clear {
            float: right;
            margin-right: 10px;
        }
        
        .shuangpin>img {
            float: left;
        }
        
        #foot {
            position: fixed;
            bottom: 0;
            background-color: grey;
            width: 100%;
        }
        
        .money {
            display: inline-block;
            font-size: 20px;
        }
        
        .js {
            float: right;
            padding: 10px 5px;
            background-color: aqua;
            margin-right: 10px;
        }
    </style>
</head>

<body>
    <div id="car">
        <span class="yxsp">已选商品</span> <button class="clear">清空</button>
        <div class="shuangpin" v-for="item in mylist">
            <img :src="item[0]" alt="">
            <p>{{item[1]}}</p>
            <span>{{item[2]}}</span> <button>-</button> 1 <button>+</button>
        </div>


        <div id="foot">
            <span class="money">￥528</span><br>
            <span class="add">另需配送费35元</span>
            <button class="js"><去结算</button>

        </div>
    </div>
</body>

</html>
<script>
    var vm = new Vue({
        el: "#car",
        data: {
            mylist: [
                ["./虾.png", "秋刀鱼/斤", "￥35.00"],
                ["./鱼.png", "鲜大带鱼/条", "￥45.00"],
                ["./皮皮虾.png", "鲜活全母皮皮虾/斤", "￥85.00"],
                ["./虾.png", "鲜大带鱼/条", "￥45.00"],
                ["./虾.png", "秋刀鱼/斤", "￥35.00"],
                ["./虾.png", "秋刀鱼/斤", "￥35.00"],
                ["./虾.png", "秋刀鱼/斤", "￥35.00"],
                ["./虾.png", "秋刀鱼/斤", "￥35.00"],
                ["./虾.png", "秋刀鱼/斤", "￥35.00"],
                ["./虾.png", "秋刀鱼/斤", "￥35.00"],
                ["./虾.png", "秋刀鱼/斤", "￥35.00"],
                ["./虾.png", "秋刀鱼/斤", "￥35.00"],
                ["./虾.png", "秋刀鱼/斤", "￥35.00"],
            ]
        }
    })
</script>